import request from '@/utils/request'

const BASE = `/admin/cmn/dict`;

export default {
    // 根据dictCode获取下级节点
    findByDictCode(dictCode) {
        return request({
            url: `${BASE}/findByDictCode/${dictCode}`,
            method: 'get',
        })
    },
    // 根据id查询子数据
    findByParentId(parentId) {
        return request({
            url: `${BASE}/findChildData/${parentId}`,
            method: 'get',
        })
    },
}